Skip to content

Support loading kshcode from memory to support embedding - #752

Closed
HansH111 wants to merge 3 commits into
ksh93:devfrom
HansH111:embedded
Closed

HansH111 wants to merge 3 commits into
ksh93:devfrom
HansH111:embedded

Conversation

@HansH111

Copy link
Copy Markdown

Extended sh_main to sh_mainex by adding extra parameters in function to support loading ksh code from a memory location.
added functions sh_main and sh_maincode to support original and memory kshcode to use sh_mainex.

removed error message when SHOPT SCRIPTONLY=1 because it breaks embedded usage.

@McDutchie

Copy link
Copy Markdown

Sorry @HansH111, I see no justification for merging this in the main code and adding yet another function call to the C stack of every ksh process in existence, for the benefit of (as far as I know) one person. There's no one else who can use it since whatever is interfacing with your patch is not available to the rest of us.

I think what you want would be better achieved with separate C program that links against libshell.

@McDutchie McDutchie closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants